<?php $this->load->view('common/head');?>
<form name="add" id="add" action="<?php echo $this->input->server('REQUEST_URI'); ?>" method="post">
<input type="hidden" name="id" id="id" value="<?=isset($timeUnitData) ? $timeUnitData['id'] : ''?>">
  <div class="form-group">
    <label class="col-sm-2 control-label" for="year">所属年份：</label>
    <input type="input" class="form-control hide" name="year" id="year" value="<?=isset($timeUnitData) ? $timeUnitData['year'] : date("Y")?>" placeholder="年份">
    <?=isset($timeUnitData) ? $timeUnitData['year'] : date("Y")?>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label" for="name">所属双月：</label>
    <input type="input" class="form-control hide" name="name" id="name" value="<?=isset($timeUnitData) ? $timeUnitData['name'] : ''?>" placeholder="时段名称">
    <?=isset($timeUnitData) ? $timeUnitData['name'] : ''?>
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="orderNum">排序数字：</label>
    <div class="col-sm-4">
    <input type="input" class="form-control" name="orderNum" id="orderNum" value="<?=isset($timeUnitData) ? $timeUnitData['orderNum'] : 0?>" placeholder="排序数字">
    <p class="help-block">数字越小越靠前，数字越大越靠后。</p>
    </div>
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="startTime">时段时间范围：</label>
    <div class="input-group">
    <input type="input" class="form-control" name="startTime" id="startTime" value="<?=isset($timeUnitData) ? $timeUnitData['startTime'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'endTime\')}' })" placeholder="开始时间">
    <div class="input-group-addon">~</div>
    <input type="input" class="form-control" name="endTime" id="endTime" value="<?=isset($timeUnitData) ? $timeUnitData['endTime'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startTime\')}' })" placeholder="结束时间">
    </div>
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="spreadTime[budgetApplyStart]">固定传播基金预算申请时间：</label>
    <div class="input-group">
    <input type="input" class="form-control" name="spreadTime[budgetApplyStart]" id="spreadTime[budgetApplyStart]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['budgetApplyStart'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'spreadTime[budgetApplyEnd]\')}' })" placeholder="开始时间">
    <div class="input-group-addon">~</div>
    <input type="input" class="form-control" name="spreadTime[budgetApplyEnd]" id="spreadTime[budgetApplyEnd]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['budgetApplyEnd'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'spreadTime[budgetApplyStart]\')}' })" placeholder="结束时间">
    </div>
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="spreadTime[budgetAuditStart]">固定传播基金预算审核时间：</label>
    <div class="input-group">
    <input type="input" class="form-control" name="spreadTime[budgetAuditStart]" id="spreadTime[budgetAuditStart]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['budgetAuditStart'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'spreadTime[budgetAuditEnd]\')}' })" placeholder="开始时间">
    <div class="input-group-addon">~</div>
    <input type="input" class="form-control" name="spreadTime[budgetAuditEnd]" id="spreadTime[budgetAuditEnd]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['budgetAuditEnd'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'spreadTime[budgetAuditStart]\')}' })" placeholder="结束时间">
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label" for="spreadTime[settleApplyStart]">双月检核发布开放时间</label>
    <input type="input" class="form-control" name="spreadTime[settleApplyStart]" id="spreadTime[settleApplyStart]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleApplyStart'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'spreadTime[settleApplyEnd]\')}' })" placeholder="开始时间">
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label" for="spreadTime[settleApplyStart]">双月检核发布截止时间</label>
    <input type="input" class="form-control" name="spreadTime[settleApplyEnd]" id="spreadTime[settleApplyEnd]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleApplyEnd'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'spreadTime[settleApplyStart]\')}' })" placeholder="结束时间">
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="spreadTime[settleAuditStart]">固定传播基金结算审核时间</label>
    <div class="input-group">
    <input type="input" class="form-control" name="spreadTime[settleAuditStart]" id="spreadTime[settleAuditStart]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleAuditStart'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'spreadTime[settleAuditEnd]\')}' })" placeholder="开始时间">
    <div class="input-group-addon">~</div>
    <input type="input" class="form-control" name="spreadTime[settleAuditEnd]" id="spreadTime[settleAuditEnd]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleAuditEnd'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'spreadTime[settleAuditStart]\')}' })" placeholder="结束时间">
    </div>
  </div>
  <div class="form-group hide">
    <label class="col-sm-2 control-label" for="spreadTime[settleChangeStart]">固定传播基金修改金额时间</label>
    <div class="input-group">
    <input type="input" class="form-control" name="spreadTime[settleChangeStart]" id="spreadTime[settleChangeStart]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleChangeStart'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss', maxDate:'#F{$dp.$D(\'spreadTime[settleChangeEnd]\')}' })" placeholder="开始时间">
    <div class="input-group-addon">~</div>
    <input type="input" class="form-control" name="spreadTime[settleChangeEnd]" id="spreadTime[settleChangeEnd]" value="<?=isset($timeUnitData) ? $timeUnitData['spreadTimeSetting']['settleChangeEnd'] : ''?>" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'spreadTime[settleChangeStart]\')}' })" placeholder="结束时间">
    </div>
  </div>
  <div class="form-group text-center">
	<div class="col-sm-4">
	  <button type="button" onclick="ajaxFormSubmit('add')" class="btn btn-default btn-primary">保存</button>
	  <button type="button" onclick="closeWindow()" class="btn btn-default btn-primary">取消</button>
	</div>
  </div>
</form>
<?php $this->load->view('common/foot');?>